package com.personal.test.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.personal.test.dao.UserDao;
import com.personal.test.domin.User;
import com.personal.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author linyh
 * @version 1.0
 * @email 1503386669@qq.com
 * @date 2020/10/22 9:25
 */
@Service(value = "UserService")
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {


    @Autowired
    private UserDao userDao;

    @Override
    public boolean deleteById(String id) {
        return userDao.deleteById(id) > 0;
    }
}
